body {
    background: silver;
    font-family: sans-serif;
    font-size: 12px;
    user-select: none;
}

#page-container {
    border: 2px solid black;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 1000px;
    height: 630px;
    margin: 10px auto;
}

#loading-screen, #gameplay-screen {
    width: 100%;
    height: 100%;
}

#loading-screen {
    background: #eee;
    padding-top: 450px;
    height: 250px;
}

#loading-all, #loading-current {
    width: 800px;
    margin: 0 auto;
    height: 25px;
    border: 2px solid #555;
    border-radius: 5px;
}

#loading-all div, #loading-current div {
    height: 25px;
    border-radius: 3px;
    width: 0;
    background: #999;
}

#loading-message {
    margin: 15px 0;
    text-align: center;
}

/* --------------------------- gameplay page ------------------------------- */

#gameplay-screen {
    display: none;
    background: #666;
}

#view {
    width: 800px;
    height: 600px;
    float: left;
    background: whitesmoke;
}

.canvas-container {
    height: 0;
}

.top-shade {
    width: 1000px;
    height: 15px;
    float: left;
    background: linear-gradient(#d9d9d9, #999);
    background: -webkit-linear-gradient(#d9d9d9, #999);
}

#minimap {
    width: 200px;
    height: 200px;
    float: left;
    background: black;
}

.middle-right-shade {
    width: 200px;
    height: 20px;
    float: left;
    background: linear-gradient(#d9d9d9, #999, #d9d9d9);
    background: -webkit-linear-gradient(#d9d9d9, #999, #d9d9d9);
}

.middle-right-shade.slim {
    height: 5px;
}

.resource-info {
    background: #555555;
    border-radius: 5px;
    height: 14px;
    margin: 1px 15px;
    border: 2px solid #222222;
    text-align: center;
    font-family: monospace;
    color: #ffd200;
    font-weight: bold;
}

#button-repair, #button-sell {
    width: 100px;
    height: 50px;
    float: left;
    background: url('ui-images/background-button-sell-repair.png');
}

#button-repair.active, #button-sell.active {
    background-image: url('ui-images/background-button-sell-repair-active.png');
}

#button-repair div, #button-sell div {
    width: 100px;
    height: 50px;
}

#button-repair div {
    background: center center no-repeat url('ui-images/button-repair.png');
}

#button-sell div {
    background: center center no-repeat url('ui-images/button-sell.png');
}

#power-level-wrapper {
    width: 20px;
    height: 320px;
    float: left;
    background: linear-gradient(left, #050505, #696969, #050505);
    background: -webkit-linear-gradient(left, #050505, #696969, #050505);
    position: relative;
}

#power-level-content {
    width: 20px;
    position: absolute;
    bottom: 0;
}

#power-level-production {
    width: 20px;
    height: 45px;
    background: linear-gradient(left, #007700, #00bb00, #007700);
    background: -webkit-linear-gradient(left, #007700, #00bb00, #007700);
}

#power-level-marker {
    width: 20px;
    height: 5px;
    background: linear-gradient(left, #987700, #d8bb00, #987700);
    background: -webkit-linear-gradient(left, #987700, #d8bb00, #987700);
}

#power-level-consumption {
    width: 20px;
    height: 70px;
    background: linear-gradient(left, #450000, #a90000, #450000);
    background: -webkit-linear-gradient(left, #450000, #a90000, #450000);
}

.construction-buttons {
    width: 90px;
    height: 320px;
    float: left;
    background: url('ui-images/background-construct-buttons.png') 0 20px;
    background-repeat: no-repeat;
}

.construction-buttons-scrolling {
    width: 90px;
    height: 20px;
    background: url('ui-images/background-button-scroll.png');
}

.button-scroll-up, .button-scroll-down {
    width: 45px;
    height: 20px;
    float: left;
}

.button-scroll-up {
    background: url('ui-images/button-scroll-up.png');
}

.button-scroll-down {
    background: url('ui-images/button-scroll-down.png');
}

.construction-buttons-content {
    width: 80px;
    height: 290px;
    margin: 5px;
    overflow: hidden;
}

.construction-button {
    width: 80px;
    height: 45px;
    background: url('ui-images/background-construct-button.png');
    margin-bottom: 5px;
    position: relative;
    text-align: center;
    font-size: 8px;
    text-transform: uppercase;
    color: white;
}

.construction-button .construction-progress {
    position: absolute;
    left: 2px;
    top: 0px;
    width: 76px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px 6px 0 0;
    z-index: 1;
}

.construction-button .construction-icon {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 70px;
    height: 38px;
}

.construction-button img {
    width: 70px;
    height: 38px;
}

.construction-button .construction-label {
    position: absolute;
    left: 2px;
    bottom: 0px;
    width: 76px;
    min-height: 13px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 6px 6px;
}

.construction-button:first-child {
    margin-top: 0;
}

.bottom-shade {
    width: 1000px;
    height: 15px;
    float: left;
    background: linear-gradient(#999, #d9d9d9);
    background: -webkit-linear-gradient(#999, #d9d9d9);
}
